package com.jumi.microservice.stock.domain;

import com.jumi.microservice.common.base.AbstractObject;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName StockDTO
 * @Description 仓库库存-商品
 * @Author Abel Yang
 * @Date 2020/8/25/025 15:46
 **/
public class StockDTO extends AbstractObject implements Serializable {
    private static final long serialVersionUID = 890093009039426902L;

    @ApiModelProperty(value = "库存商品id")
    private Long goodsId;

    @ApiModelProperty(value = "仓库库存编码")
    private String goodsCode;

    @ApiModelProperty(value = "变动类型")
    private Integer changeType;

    @ApiModelProperty(value = "常规入库存总数")
    private Integer inStockTotalNum;

    @ApiModelProperty(value = "破损入库总数")
    private Integer inStockDamageTotalNum;

    @ApiModelProperty(value = "常规出库存总数")
    private Integer outStockTotalNum;

    @ApiModelProperty(value = "破损出库总数")
    private Integer outStockDamageTotalNum;

    @ApiModelProperty(value = "仓库id")
    private Long warehouseId;

    @ApiModelProperty(value = "批次号")
    private String batchCode;

    @ApiModelProperty(value = "操作人")
    private String updateBy;

    @ApiModelProperty(value = "库存物料详情列表")
    private List<StockDetailDTO> stockDetailDtoList;

    @ApiModelProperty(value = "记录日志变动原因id")
    private Long changeReasonId;
    @ApiModelProperty(value = "是否为一般仓库入库")
    private Byte isGeneralWarehouse;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsCode() {
        return goodsCode;
    }

    public void setGoodsCode(String goodsCode) {
        this.goodsCode = goodsCode;
    }

    public Integer getChangeType() {
        return changeType;
    }

    public void setChangeType(Integer changeType) {
        this.changeType = changeType;
    }

    public Integer getInStockTotalNum() {
        return inStockTotalNum;
    }

    public void setInStockTotalNum(Integer inStockTotalNum) {
        this.inStockTotalNum = inStockTotalNum;
    }

    public Integer getInStockDamageTotalNum() {
        return inStockDamageTotalNum;
    }

    public void setInStockDamageTotalNum(Integer inStockDamageTotalNum) {
        this.inStockDamageTotalNum = inStockDamageTotalNum;
    }

    public Integer getOutStockTotalNum() {
        return outStockTotalNum;
    }

    public void setOutStockTotalNum(Integer outStockTotalNum) {
        this.outStockTotalNum = outStockTotalNum;
    }

    public Integer getOutStockDamageTotalNum() {
        return outStockDamageTotalNum;
    }

    public void setOutStockDamageTotalNum(Integer outStockDamageTotalNum) {
        this.outStockDamageTotalNum = outStockDamageTotalNum;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public List<StockDetailDTO> getStockDetailDtoList() {
        return stockDetailDtoList;
    }

    public void setStockDetailDtoList(List<StockDetailDTO> stockDetailDtoList) {
        this.stockDetailDtoList = stockDetailDtoList;
    }

    public Long getChangeReasonId() {
        return changeReasonId;
    }

    public void setChangeReasonId(Long changeReasonId) {
        this.changeReasonId = changeReasonId;
    }

    public Byte getIsGeneralWarehouse() {
        return isGeneralWarehouse;
    }

    public void setIsGeneralWarehouse(Byte isGeneralWarehouse) {
        this.isGeneralWarehouse = isGeneralWarehouse;
    }

    @Override
    public String toString() {
        return "StockDTO{" +
                "goodsId=" + goodsId +
                ", goodsCode='" + goodsCode + '\'' +
                ", changeType=" + changeType +
                ", inStockTotalNum=" + inStockTotalNum +
                ", inStockDamageTotalNum=" + inStockDamageTotalNum +
                ", outStockTotalNum=" + outStockTotalNum +
                ", outStockDamageTotalNum=" + outStockDamageTotalNum +
                ", warehouseId=" + warehouseId +
                ", batchCode='" + batchCode + '\'' +
                ", updateBy='" + updateBy + '\'' +
                ", stockDetailDtoList=" + stockDetailDtoList +
                '}';
    }
}
